package com.example.service.wechat;

import com.example.pojo.web.Result;
import com.example.pojo.wechat.BrokenBike;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName BrokenBikeService
 * @Description: com.example.service.wechat.impl
 * @Auther: xiwd
 * @Date: 2022/4/19 - 04 - 19 - 11:55
 * @version: 1.0
 */
public interface BrokenBikeService {
    //methods
    /**
     * 查询所有的损坏单车记录
     * @return
     */
    public abstract List<BrokenBike> selectBrokenBikesAll();


    /**
     * 添加损坏单车记录
     * @param brokenBike
     * @param code
     */
    public abstract Integer addBrokenBikeRecord(BrokenBike brokenBike,String code);

    /**
     * 根据id修改BrokenBike的状态值
     * @param id
     * @param status
     * @return
     */
    public abstract Integer updateBrokenBikeStatusByID(Integer id,Integer status);

    /**
     * 根据id更新损坏单车任务状态
     * @param id
     * @return
     */
    public abstract Result updateBrokenBikeByID(Integer id);
}
